<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        /* 
            对成绩大于60的,输出合格，对成绩小于60的，输出不合格
            6x/10=6
            7x/10=7
            8x/10=8
            9x/10=9
            100/10=10
         */
         var score=66;
         switch(parseInt(score/10)){
             case 10:
             case 9:
             case 8:
             case 7: 
             case 6: 
            console.log("合格");
            break;
            default:
            console.log("成绩不合格");
            break;
         }
         switch(true){
            case score>60:
            console.log("合格");
            break;
            default:
            console.log("成绩不合格");
            break
         }

    </script>
</head>
<body>
    
</body>
</html>